package cn.topcodes.tcsf.admin.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class SysRoleForm implements Idable {

	private Long id;

	@NotBlank(message = "角色名称不能为空")
    @Length(min = 1, max = 20,message = "角色名称长度允许范围为1~20个字符")
	private String name;

    @Length(min = 0, max = 100,message = "描述长度允许范围为0~100个字符")
    private String description;

}
